package com.practice.springboot_01_zwj.entity.dto;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class SubTaskWithBatchDTO {
    private Integer subId;
    private String subName;
    private String subDescription;
    private String subExecutor;
    private String subBelonging;
    private String subExecutorAcNames; // 子任务执行人中文名列表（逗号分隔）
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date planStartTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date planFinishTime;
    private Double finishProgress;
    private Integer mainId;
    private Double avgRating;

    // 批量子任务
    private List<BatchSubTaskDTO> batchSubTasks;

    // Getters and Setters

    public Double getAvgRating() {
        return avgRating;
    }

    public void setAvgRating(Double avgRating) {
        this.avgRating = avgRating;
    }

    public Integer getSubId() { return subId; }
    public void setSubId(Integer subId) { this.subId = subId; }
    public String getSubName() { return subName; }
    public void setSubName(String subName) { this.subName = subName; }
    // ... 其他getter/setter ...
    public List<BatchSubTaskDTO> getBatchSubTasks() { return batchSubTasks; }
    public void setBatchSubTasks(List<BatchSubTaskDTO> batchSubTasks) { this.batchSubTasks = batchSubTasks; }

    public String getSubDescription() {
        return subDescription;
    }

    public void setSubDescription(String subDescription) {
        this.subDescription = subDescription;
    }

    public String getSubExecutor() {
        return subExecutor;
    }

    public void setSubExecutor(String subExecutor) {
        this.subExecutor = subExecutor;
    }

    public String getSubBelonging() {
        return subBelonging;
    }

    public void setSubBelonging(String subBelonging) {
        this.subBelonging = subBelonging;
    }

    public String getSubExecutorAcNames() {
        return subExecutorAcNames;
    }

    public void setSubExecutorAcNames(String subExecutorAcNames) {
        this.subExecutorAcNames = subExecutorAcNames;
    }

    public Date getPlanStartTime() {
        return planStartTime;
    }

    public void setPlanStartTime(Date planStartTime) {
        this.planStartTime = planStartTime;
    }

    public Date getPlanFinishTime() {
        return planFinishTime;
    }

    public void setPlanFinishTime(Date planFinishTime) {
        this.planFinishTime = planFinishTime;
    }

    public Double getFinishProgress() {
        return finishProgress;
    }

    public void setFinishProgress(Double finishProgress) {
        this.finishProgress = finishProgress;
    }

    public Integer getMainId() {
        return mainId;
    }

    public void setMainId(Integer mainId) {
        this.mainId = mainId;
    }
}